import { PartialType } from '@nestjs/mapped-types';
import { IsNotEmpty } from 'class-validator';
import { Role } from 'src/database/entitys/role.entity';

export class CreateRoleDto extends PartialType(Role) {
  @IsNotEmpty()
  roleName: string;

  @IsNotEmpty()
  roleKey: string;
}
